const fs = require('fs')
const fd = fs.openSync('dist/.version', 'w')

fs.writeSync(fd, process.env.npm_package_version)

fs.closeSync(fd)